// components/test1/test1.js
import { storeBindingsBehavior } from "mobx-miniprogram-bindings";
import { store } from "../../store/store";
Component({
  behaviors: [storeBindingsBehavior],
  storeBindings: {
    store,
    fields: {
      numA: () => store.numA,
      numB: (store) => store.numB,
      sum: "sum",
    },
    actions: {
      updateNum2: "updateNum2",
    },
  },
  methods: {
    btn2Handle() {
      this.updateNum2(5)
    }
  },
  properties: {
  },
  data: {
  },

})
